<%@page import="gson.Question"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.Collections"%>
<%@page import="javax.cache.CacheException"%>
<%@page import="javax.cache.CacheManager"%>
<%@page import="javax.cache.Cache"%>
<%@page import="com.googlecode.objectify.Query"%>

<%@ page contentType="text/xml;charset=UTF-8" language="java"%>
<%@page import="java.util.List"%><?xml version="1.0" encoding="UTF-8"?>
<%
Cache cache=null;
try {
    cache = CacheManager.getInstance().getCacheFactory().createCache(Collections.emptyMap());
} catch (CacheException e) {
   e.printStackTrace();
   
}
ArrayList<Question> siteview = null;
if(cache.containsKey("update"))
{
	siteview = (ArrayList<Question>) cache.get("update");
}
%>
<urlset
      xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
            http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
  <url>
  <loc>http://www.gardenquestions.com/</loc>
</url>
<%
if(siteview!=null)
{
	for(int i=0;i<siteview.size();i++)
	{
%>
  <url>
  <loc>http://www.gardenquestions.com<%=siteview.get(i).getLink()%></loc>
</url>

<%
	}
}
%>

</urlset>